@layout("home.main")

@section("content")
<div class="main-wrap">
    <div class="main">
        <div class="main-content">
            <div class="title">
                <a href="/">Turui</a> &raquo; 个人收藏的帖子
            </div>
            <div class="main-box home-box-list">
                @if ($archives)
                @foreach ($archives as $archive)
                <div class="post-list">
                    <div class="item-avatar">
                        <a href=""><img src="{{ $archive->user->userinfo->avatar }}" style="display: inline; ">    </a>
                    </div>
                    <div class="item-content">
                        <h1><a href="/archive/{{ $archive->id }}">{{ $archive->title }}</a></h1>
                        <span class="item-date"><a href="">{{ $archive->categorie->title }}</a>  •  <a href="">{{ $archive->user->uname }}</a>  •  {{ Helper::gettime($archive->updated_at) }}  •  [ <a href="">取消收藏</a> ]</span>
                    </div>
                    <div class="item-count">
                       
                    </div>    
                </div>
                @endforeach
                @else
                <div class='main-box home-box-list'><p>&nbsp;&nbsp;&nbsp;暂无收藏帖子</p></div>
                @endif
            </div>       
        </div>
        <!-- main-content end -->
        <div class="main-sider">
            @include("home.slidebar")
        </div>
        <!-- main-sider end -->
    </div>
    <!-- main end -->
</div>
@endsection